﻿<%@ Page Title="Details Article" Language="C#" MasterPageFile="~/Web/bloglayout.Master" AutoEventWireup="true" CodeBehind="DetailsArticle.aspx.cs" Inherits="pwblog.Web.DetailsArticle" %>
<%@ Register
    Assembly="AjaxControlToolkit"
    Namespace="AjaxControlToolkit"
    TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="blogCPH" runat="server">
    <ajaxToolkit:ToolkitScriptManager EnablePartialRendering="true" runat="Server" ID="ScriptManager1" />
    
    <div class="content_details">
        <div class="title_article">
            <h1><asp:Label ID="lblTitle" runat="server" /></h1>
            <p style="font-style:italic;"> Viết bởi <span style="font-weight:600"><asp:Label ID="lblUserName" runat="server" /></span> vào <asp:Label ID="lblDatePost" runat="server" /> </p>
        </div>
        <div class="description_article">
            <asp:Label ID="lblContentsArticle" runat="server" Text="" />
            <div id="socialPlugins">
                <div id="facebooks">
                    (´・ω・)つ Thích 
                    <iframe src="http://www.facebook.com/plugins/like.php?href=<%=encodeUrl%>&amp;send=false&amp;layout=button_count&amp;width=450&amp;show_faces=true&amp;font=segoe+ui&amp;colorscheme=light&amp;action=like&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe>
                    <br />
                    (´・ω・)つ Chia sẻ 
                    <a href="http://www.facebook.com/sharer/sharer.php?u=<%= encodeUrl %>&title=<%=encodeTitle %>" target="_blank"><img src="Image/facebook.gif" alt="facebook"/>Facebook</a>
                </div>
                <div class="c"></div>
            </div>
        </div>
    </div>

    <div class="comment">
        <h3 style="text-decoration:underline">Các bình luận về bài viết này:</h3>
        <asp:Repeater runat="server" ID="listComment" >
            <ItemTemplate>
            <div class="item_comment">
                <a id="<%#Eval("Id") %>"></a>
                <b style="color:#3B5998"><%# Eval("Name") %> </b> vào
                <span style="color:#9393BA"><%# Eval("DateComment") %></span>
                <p style="color:#333333; padding-left:4px"><%# Eval("Comment1") %></p>
            </div>
            </ItemTemplate>

            <FooterTemplate>
            </FooterTemplate>
        </asp:Repeater>

        <div class="item_comment">
            <b>Gửi bình luận về bài viết này:</b>
            <br />
            <asp:TextBox ID="tbName" runat="server" Width="298px" Wrap="False" /><br />
            <ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server"
            TargetControlID="tbName"
            WatermarkText="Tên của bạn"
            WatermarkCssClass="watermarked" />

            <asp:TextBox ID="tbComment" runat="server" Width="638px" ToolTip="Comment" TextMode="MultiLine" />
            <asp:LinkButton ID="btnComment" Text="" runat="server" OnClick="btnComment_Click" CssClass="button"><span>Gửi  bình luận</span></asp:LinkButton>
            <ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server"
            TargetControlID="tbComment"
            WatermarkText="Nội dung bình luận"
            WatermarkCssClass="watermarked" />
        </div>
    </div>
</asp:Content>
